﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _24 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsSystem",
                table: "SysPosition",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false,
                comment: "是否为系统岗位");

            migrationBuilder.UpdateData(
                table: "SysPosition",
                keyColumn: "Id",
                keyValue: new Guid("d45fb54e-2b58-43d1-9844-a4becd699926"),
                column: "IsSystem",
                value: true);

            migrationBuilder.UpdateData(
                table: "SysPosition",
                keyColumn: "Id",
                keyValue: new Guid("f6df2b59-47fd-4020-9469-056ac2cd3357"),
                column: "IsSystem",
                value: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsSystem",
                table: "SysPosition");
        }
    }
}
